<template>
  <div class="Tab">
    <div class="Main_main">
        <div class="List" >
          <div class="tit" style=" padding: 5px; line-height: 4vh;border-bottom: 1px solid #ccc;" v-for="(items,index) in 5" :key="index">
            <p style="padding: 5px;font-size: 14px;" class="tit_text">{{ item.nosocomium }}</p>
            <p class="tit_text2">{{item.socodescword}}</p>
            <p><img style=" float: left; width: 25px; height: 25px;border-radius: 100%; margin-left: 10px;" :src="item.socoimage">
            &ensp;<span style="margin-top: 5px;">{{ item.sococity }}医院</span></p>
          </div>
        </div>
    </div>
  </div>
</template>


<script setup>
import {ref,defineProps} from 'vue'
const props=defineProps({
    item:Object,
    data:Object
})
console.log(props.item);
const item=ref(props.item)
</script>

<style scoped>
h2 {
  color: #007bff;
}
.Tab{
    width: 100%;
    background: #e8e9eb;
    height: 81vh;
    overflow: scroll;
}
.Main_main{
    width: 100%;
    height: 150%;
}
.List{
  width: 96%;
  margin-left: 2%;
  margin-top: 5px;
  
}
.tit{
  width: 100%;
  height: 15vh;
  border-radius: 20px;
  margin-top: 5px;
}
.tit_text{
   display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    /* 设置显示的行数 */
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5em;
    /* 设置行高 */
    max-height: 3em;
    /* 设置最大高度，等于行高乘以行数 */
    font-size: 14px;
}
.tit_text2{
  display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    /* 设置显示的行数 */
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5em;
    /* 设置行高 */
    max-height: 3em;
}
.zixun{
  width: 70px;
  height: 70px;
  text-align: center;
  line-height: 70px;
  position: fixed;
  top: 70%;
  left: 80%;
  border-radius: 100%;
  background: red;
}
</style>